﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    public class A
    {
        public string Name { get; set; }
        public A(string name)
        {
            this.Name = name;
        }
        public void show()
        {
            Console.WriteLine("我是A类的:{0}", Name);
        }
    }
    public class B : A
    {

        public B(String name)
            : base(name)
        {
            Console.WriteLine("我是B类的:{0}", name);
        }
       
    }
}
